projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf9e567
)
(math-smallest-emacs-expt): Make the computation more robust.
author
Jay Belanger
<jay.p.belanger@gmail.com>
Mon, 1 Oct 2007 02:53:29 +0000
(
02:53
+0000)
committer
Jay Belanger
<jay.p.belanger@gmail.com>
Mon, 1 Oct 2007 02:53:29 +0000
(
02:53
+0000)
lisp/calc/calc-math.el
patch
|
blob
|
history
diff --git
a/lisp/calc/calc-math.el
b/lisp/calc/calc-math.el
index 3e4743d58aea3af3a6477152c0a95fdc0a1d0891..0b4c82d12928b468624d9c4352d83fae3e01d085 100644
(file)
--- a/
lisp/calc/calc-math.el
+++ b/
lisp/calc/calc-math.el
@@
-69,12
+69,12
@@
(defvar math-smallest-emacs-expt
(let ((x -1))
(while (condition-case nil
- (
expt 10.0 x
)
+ (
> (expt 10.0 x) 0.0
)
(error nil))
(setq x (* 2 x)))
(setq x (/ x 2))
(while (condition-case nil
- (
expt 10.0 x
)
+ (
> (expt 10.0 x) 0.0
)
(error nil))
(setq x (1- x)))
(+ x 2))